using System.Collections.Generic;
using CLELCore;
using CLELCore.Assembly.Descriptors;
using CLELCore.Assembly.CLELInstructions;
using opt.Analysis.Graph.CallGraph;

namespace opt.lib.ClassIFE
{
	public class ClassIFENodeInfo : NodeInfo
	{
		private List<CLELInstruction> _code;
		private MethodDescriptor _method_descriptor;

		public List<CLELInstruction> Code
		{
			get
			{
				return _code;
			}
			set
			{
				_code = value;
			}
		}

		public MethodDescriptor MethodDescriptor
		{
			get
			{
				return _method_descriptor;
			}
		}

		public ClassIFENodeInfo()
		{
		}
		
		public override void LoadInfo(CLEL clel,MethodDescriptor md)
		{
			_code = md.GetMethodsCode();
			_method_descriptor = md;
		}
	}
}
